package com.rpcdemo.client;

import com.rpcdemo.config.UserRemoteFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * create by yongli on 2021-06-21 08:06
 * 使用方式比较优雅
 */
@FeignClient(name = "hello", url = "http://81.69.45.158:8888", fallback = UserRemoteFeignFallBack.class)
public interface UserRemoteClient {

    @GetMapping("/hello")
    String hello();

    @GetMapping("/hi")
    String hi();
}
